package(default_visibility = ["//visibility:public"])

load(
    "@io_bazel_rules_go//go:def.bzl",
    "go_library",
    "go_test",
)

go_library(
    name = "go_default_library",
    srcs = [
        "active_deadline.go",
        "doc.go",
        "errors.go",
        "kubelet.go",
        "kubelet_getters.go",
        "kubelet_network.go",
        "kubelet_network_linux.go",
        "kubelet_network_others.go",
        "kubelet_node_status.go",
        "kubelet_pods.go",
        "kubelet_resources.go",
        "kubelet_volumes.go",
        "pod_container_deletor.go",
        "pod_workers.go",
        "reason_cache.go",
        "runonce.go",
        "runtime.go",
        "util.go",
        "volume_host.go",
    ],
    importpath = "k8s.io/kubernetes/pkg/kubelet",
    deps = [
        "//pkg/api/v1/pod:go_default_library",
        "//pkg/api/v1/resource:go_default_library",
        "//pkg/apis/core:go_default_library",
        "//pkg/apis/core/pods:go_default_library",
        "//pkg/apis/core/v1:go_default_library",
        "//pkg/apis/core/v1/helper:go_default_library",
        "//pkg/apis/core/v1/helper/qos:go_default_library",
        "//pkg/features:go_default_library",
        "//pkg/fieldpath:go_default_library",
        "//pkg/kubelet/apis:go_default_library",
        "//pkg/kubelet/apis/config:go_default_library",
        "//pkg/kubelet/apis/pluginregistration/v1:go_default_library",
        "//pkg/kubelet/apis/podresources:go_default_library",
        "//pkg/kubelet/cadvisor:go_default_library",
        "//pkg/kubelet/certificate:go_default_library",
        "//pkg/kubelet/checkpointmanager:go_default_library",
        "//pkg/kubelet/cloudresource:go_default_library",
        "//pkg/kubelet/cm:go_default_library",
        "//pkg/kubelet/config:go_default_library",
        "//pkg/kubelet/configmap:go_default_library",
        "//pkg/kubelet/container:go_default_library",
        "//pkg/kubelet/dockershim:go_default_library",
        "//pkg/kubelet/dockershim/remote:go_default_library",
        "//pkg/kubelet/envvars:go_default_library",
        "//pkg/kubelet/events:go_default_library",
        "//pkg/kubelet/eviction:go_default_library",
        "//pkg/kubelet/images:go_default_library",
        "//pkg/kubelet/kubeletconfig:go_default_library",
        "//pkg/kubelet/kuberuntime:go_default_library",
        "//pkg/kubelet/lifecycle:go_default_library",
        "//pkg/kubelet/logs:go_default_library",
        "//pkg/kubelet/metrics:go_default_library",
        "//pkg/kubelet/metrics/collectors:go_default_library",
        "//pkg/kubelet/mountpod:go_default_library",
        "//pkg/kubelet/network/dns:go_default_library",
        "//pkg/kubelet/nodelease:go_default_library",
        "//pkg/kubelet/nodestatus:go_default_library",
        "//pkg/kubelet/oom:go_default_library",
        "//pkg/kubelet/pleg:go_default_library",
        "//pkg/kubelet/pluginmanager:go_default_library",
        "//pkg/kubelet/pluginmanager/cache:go_default_library",
        "//pkg/kubelet/pod:go_default_library",
        "//pkg/kubelet/preemption:go_default_library",
        "//pkg/kubelet/prober:go_default_library",
        "//pkg/kubelet/prober/results:go_default_library",
        "//pkg/kubelet/remote:go_default_library",
        "//pkg/kubelet/runtimeclass:go_default_library",
        "//pkg/kubelet/secret:go_default_library",
        "//pkg/kubelet/server:go_default_library",
        "//pkg/kubelet/server/metrics:go_default_library",
        "//pkg/kubelet/server/portforward:go_default_library",
        "//pkg/kubelet/server/remotecommand:go_default_library",
        "//pkg/kubelet/server/stats:go_default_library",
        "//pkg/kubelet/server/streaming:go_default_library",
        "//pkg/kubelet/stats:go_default_library",
        "//pkg/kubelet/status:go_default_library",
        "//pkg/kubelet/sysctl:go_default_library",
        "//pkg/kubelet/token:go_default_library",
        "//pkg/kubelet/types:go_default_library",
        "//pkg/kubelet/util:go_default_library",
        "//pkg/kubelet/util/format:go_default_library",
        "//pkg/kubelet/util/manager:go_default_library",
        "//pkg/kubelet/util/queue:go_default_library",
        "//pkg/kubelet/util/sliceutils:go_default_library",
        "//pkg/kubelet/volumemanager:go_default_library",
        "//pkg/scheduler/algorithm/predicates:go_default_library",
        "//pkg/scheduler/api:go_default_library",
        "//pkg/security/apparmor:go_default_library",
        "//pkg/security/podsecuritypolicy/sysctl:go_default_library",
        "//pkg/util/dbus:go_default_library",
        "//pkg/util/iptables:go_default_library",
        "//pkg/util/mount:go_default_library",
        "//pkg/util/node:go_default_library",
        "//pkg/util/oom:go_default_library",
        "//pkg/util/removeall:go_default_library",
        "//pkg/util/selinux:go_default_library",
        "//pkg/util/taints:go_default_library",
        "//pkg/volume:go_default_library",
        "//pkg/volume/csi:go_default_library",
        "//pkg/volume/util:go_default_library",
        "//pkg/volume/util/exec:go_default_library",
        "//pkg/volume/util/hostutil:go_default_library",
        "//pkg/volume/util/subpath:go_default_library",
        "//pkg/volume/util/types:go_default_library",
        "//pkg/volume/util/volumepathhandler:go_default_library",
        "//pkg/volume/validation:go_default_library",
        "//staging/src/k8s.io/api/authentication/v1:go_default_library",
        "//staging/src/k8s.io/api/core/v1:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/api/equality:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/fields:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/clock:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/validation:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
        "//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
        "//staging/src/k8s.io/client-go/informers:go_default_library",
        "//staging/src/k8s.io/client-go/kubernetes:go_default_library",
        "//staging/src/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library",
        "//staging/src/k8s.io/client-go/listers/core/v1:go_default_library",
        "//staging/src/k8s.io/client-go/listers/storage/v1beta1:go_default_library",
        "//staging/src/k8s.io/client-go/tools/cache:go_default_library",
        "//staging/src/k8s.io/client-go/tools/record:go_default_library",
        "//staging/src/k8s.io/client-go/util/certificate:go_default_library",
        "//staging/src/k8s.io/client-go/util/flowcontrol:go_default_library",
        "//staging/src/k8s.io/cloud-provider:go_default_library",
        "//staging/src/k8s.io/cri-api/pkg/apis:go_default_library",
        "//staging/src/k8s.io/cri-api/pkg/apis/runtime/v1alpha2:go_default_library",
        "//third_party/forked/golang/expansion:go_default_library",
        "//vendor/github.com/golang/groupcache/lru:go_default_library",
        "//vendor/github.com/google/cadvisor/info/v1:go_default_library",
        "//vendor/k8s.io/klog:go_default_library",
        "//vendor/k8s.io/utils/exec:go_default_library",
        "//vendor/k8s.io/utils/integer:go_default_library",
        "//vendor/k8s.io/utils/path:go_default_library",
    ],
)

go_test(
    name = "go_default_test",
    srcs = [
        "active_deadline_test.go",
        "kubelet_getters_test.go",
        "kubelet_network_test.go",
        "kubelet_node_status_test.go",
        "kubelet_pods_linux_test.go",
        "kubelet_pods_test.go",
        "kubelet_pods_windows_test.go",
        "kubelet_resources_test.go",
        "kubelet_test.go",
        "kubelet_volumes_linux_test.go",
        "kubelet_volumes_test.go",
        "pod_container_deletor_test.go",
        "pod_workers_test.go",
        "reason_cache_test.go",
        "runonce_test.go",
    ],
    embed = [":go_default_library"],
    deps = [
        "//pkg/apis/core/install:go_default_library",
        "//pkg/features:go_default_library",
        "//pkg/kubelet/apis:go_default_library",
        "//pkg/kubelet/cadvisor/testing:go_default_library",
        "//pkg/kubelet/cm:go_default_library",
        "//pkg/kubelet/config:go_default_library",
        "//pkg/kubelet/configmap:go_default_library",
        "//pkg/kubelet/container:go_default_library",
        "//pkg/kubelet/container/testing:go_default_library",
        "//pkg/kubelet/eviction:go_default_library",
        "//pkg/kubelet/images:go_default_library",
        "//pkg/kubelet/lifecycle:go_default_library",
        "//pkg/kubelet/logs:go_default_library",
        "//pkg/kubelet/network/dns:go_default_library",
        "//pkg/kubelet/nodestatus:go_default_library",
        "//pkg/kubelet/pleg:go_default_library",
        "//pkg/kubelet/pluginmanager:go_default_library",
        "//pkg/kubelet/pod:go_default_library",
        "//pkg/kubelet/pod/testing:go_default_library",
        "//pkg/kubelet/prober/results:go_default_library",
        "//pkg/kubelet/prober/testing:go_default_library",
        "//pkg/kubelet/secret:go_default_library",
        "//pkg/kubelet/server/portforward:go_default_library",
        "//pkg/kubelet/server/remotecommand:go_default_library",
        "//pkg/kubelet/server/stats:go_default_library",
        "//pkg/kubelet/stats:go_default_library",
        "//pkg/kubelet/status:go_default_library",
        "//pkg/kubelet/status/testing:go_default_library",
        "//pkg/kubelet/token:go_default_library",
        "//pkg/kubelet/types:go_default_library",
        "//pkg/kubelet/util/queue:go_default_library",
        "//pkg/kubelet/util/sliceutils:go_default_library",
        "//pkg/kubelet/volumemanager:go_default_library",
        "//pkg/scheduler/api:go_default_library",
        "//pkg/scheduler/nodeinfo:go_default_library",
        "//pkg/util/mount:go_default_library",
        "//pkg/util/taints:go_default_library",
        "//pkg/version:go_default_library",
        "//pkg/volume:go_default_library",
        "//pkg/volume/awsebs:go_default_library",
        "//pkg/volume/azure_dd:go_default_library",
        "//pkg/volume/gcepd:go_default_library",
        "//pkg/volume/hostpath:go_default_library",
        "//pkg/volume/testing:go_default_library",
        "//pkg/volume/util:go_default_library",
        "//pkg/volume/util/hostutil:go_default_library",
        "//pkg/volume/util/subpath:go_default_library",
        "//staging/src/k8s.io/api/core/v1:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/api/equality:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/clock:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/diff:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/rand:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/strategicpatch:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/uuid:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
        "//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
        "//staging/src/k8s.io/client-go/kubernetes:go_default_library",
        "//staging/src/k8s.io/client-go/kubernetes/fake:go_default_library",
        "//staging/src/k8s.io/client-go/rest:go_default_library",
        "//staging/src/k8s.io/client-go/testing:go_default_library",
        "//staging/src/k8s.io/client-go/tools/record:go_default_library",
        "//staging/src/k8s.io/client-go/util/flowcontrol:go_default_library",
        "//staging/src/k8s.io/client-go/util/testing:go_default_library",
        "//staging/src/k8s.io/component-base/featuregate:go_default_library",
        "//staging/src/k8s.io/component-base/featuregate/testing:go_default_library",
        "//vendor/github.com/google/cadvisor/info/v1:go_default_library",
        "//vendor/github.com/google/cadvisor/info/v2:go_default_library",
        "//vendor/github.com/stretchr/testify/assert:go_default_library",
        "//vendor/github.com/stretchr/testify/require:go_default_library",
    ] + select({
        "@io_bazel_rules_go//go/platform:linux": [
            "//staging/src/k8s.io/cri-api/pkg/apis/runtime/v1alpha2:go_default_library",
        ],
        "//conditions:default": [],
    }),
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [
        ":package-srcs",
        "//pkg/kubelet/apis:all-srcs",
        "//pkg/kubelet/cadvisor:all-srcs",
        "//pkg/kubelet/certificate:all-srcs",
        "//pkg/kubelet/checkpoint:all-srcs",
        "//pkg/kubelet/checkpointmanager:all-srcs",
        "//pkg/kubelet/client:all-srcs",
        "//pkg/kubelet/cloudresource:all-srcs",
        "//pkg/kubelet/cm:all-srcs",
        "//pkg/kubelet/config:all-srcs",
        "//pkg/kubelet/configmap:all-srcs",
        "//pkg/kubelet/container:all-srcs",
        "//pkg/kubelet/custommetrics:all-srcs",
        "//pkg/kubelet/dockershim:all-srcs",
        "//pkg/kubelet/envvars:all-srcs",
        "//pkg/kubelet/events:all-srcs",
        "//pkg/kubelet/eviction:all-srcs",
        "//pkg/kubelet/images:all-srcs",
        "//pkg/kubelet/kubeletconfig:all-srcs",
        "//pkg/kubelet/kuberuntime:all-srcs",
        "//pkg/kubelet/leaky:all-srcs",
        "//pkg/kubelet/lifecycle:all-srcs",
        "//pkg/kubelet/logs:all-srcs",
        "//pkg/kubelet/metrics:all-srcs",
        "//pkg/kubelet/mountpod:all-srcs",
        "//pkg/kubelet/network:all-srcs",
        "//pkg/kubelet/nodelease:all-srcs",
        "//pkg/kubelet/nodestatus:all-srcs",
        "//pkg/kubelet/oom:all-srcs",
        "//pkg/kubelet/pleg:all-srcs",
        "//pkg/kubelet/pluginmanager:all-srcs",
        "//pkg/kubelet/pod:all-srcs",
        "//pkg/kubelet/preemption:all-srcs",
        "//pkg/kubelet/prober:all-srcs",
        "//pkg/kubelet/qos:all-srcs",
        "//pkg/kubelet/remote:all-srcs",
        "//pkg/kubelet/runtimeclass:all-srcs",
        "//pkg/kubelet/secret:all-srcs",
        "//pkg/kubelet/server:all-srcs",
        "//pkg/kubelet/stats:all-srcs",
        "//pkg/kubelet/status:all-srcs",
        "//pkg/kubelet/sysctl:all-srcs",
        "//pkg/kubelet/token:all-srcs",
        "//pkg/kubelet/types:all-srcs",
        "//pkg/kubelet/util:all-srcs",
        "//pkg/kubelet/volumemanager:all-srcs",
        "//pkg/kubelet/winstats:all-srcs",
    ],
    tags = ["automanaged"],
)
